package com.manager.devicemanager.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.manager.devicemanager.entity.ComponentStatus;
import com.manager.devicemanager.mapper.ComponentStatusMapper;
import com.manager.devicemanager.service.IComponentStatusService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wpf
 * @since 2025-06-09
 */
@Service
public class ComponentStatusServiceImpl extends ServiceImpl<ComponentStatusMapper, ComponentStatus> implements IComponentStatusService {
    @Autowired
    private ComponentStatusMapper componentStatusMapper;


    @Override
    public ComponentStatus getLastData(String dataSourceName) {
        ComponentStatus result = componentStatusMapper.selectLastOne();
        return result;
    }
}
